package com.baizhi.feign.fallback;

import com.baizhi.feign.TagFeign;
import com.baizhi.po.TagPO;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class TagFallBack implements TagFeign {
    @Override
    public TagPO queryById(Long id) {
        TagPO tagPO = new TagPO();
        tagPO.setId(id);
        tagPO.setName("找不到对应信息");
        tagPO.setCreated_at(new Date());
        tagPO.setType("(#￣～￣#)");
        return tagPO;
    }
}
